﻿@{
    ViewData["Title"] = "许可证";
}
<partial name="ConfigNav" />

@* 检查是否存在有效的许可证，不存在则要求输入 *@
@* 检查是否存在有效的许可证，存在则展示许可证，和填写新的许可证 *@
@if (false)
{
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">许可状态</span>
        <input type="text" class="form-control" value="有效" readonly>
    </div>
    <br />
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">开始日期</span>
        <input type="text" class="form-control" value="2024-12-01" readonly>
    </div>
     <br />
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">结束日期</span>
        <input type="text" class="form-control" value="2024-12-31" readonly>
    </div>
    <br />
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">数量限制</span>
        <input type="text" class="form-control" value="50" readonly>
    </div>
    <br />
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">设备编号</span>
        <input type="text" class="form-control" value="132654568941132D1D1DXCFF" readonly>
    </div>
     <br />
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">签发人员</span>
        <input type="text" class="form-control" value="陈科吉" readonly>
    </div>
    <br />
    <div class="input-group">
        <span class="input-group-text">许可证</span>
        <textarea class="form-control" aria-label="With textarea"></textarea>
    </div>
    <br />
    <button type="submit" class="btn btn-primary mb-3">刷新</button>
}
else
{
    <div class="alert alert-danger" role="alert">
        许可证不存在或已失效!
    </div>
    <div class="alert alert-warning" role="alert">
        请输入有效的许可证!
    </div>
    <div class="input-group input-group-lg">
        <span class="input-group-text" id="inputGroup-sizing-lg">设备编号</span>
        <input type="text" class="form-control" value="132654568941132D1D1DXCFF" readonly>
    </div>
    <br />
    <div class="input-group">
        <span class="input-group-text">许可证</span>
        <textarea class="form-control" aria-label="With textarea"></textarea>
    </div>
    <br />
    <button type="submit" class="btn btn-primary mb-3">提交</button>
}